/*
 * Copyright (c) 2011 Jean-Marc Perronne
 * Ensisa, 12 rue des Freres Lumieres, F-68093 Mulhouse cedex
 * All rights reserved.
 *
 * The copyright of this software is owned by Werner Randelshofer. 
 * You may not use, copy or modify this software, except in  
 * accordance with the license agreement you entered into with  
 * Jean-Marc Perronne. For details see accompanying license terms. 
 */

package fr.uha.ensisa.jmp.drone.at_commands;

public class AtConfigCommand extends AbstractAtCommand
{
	private String configName;
	private String configValue;
	
	public AtConfigCommand()
	{
		super("CONFIG");
	}

	public void param(String optionName, String optionValue)
	{
		this.unReady();
		this.configName = optionName;
		this.configValue = optionValue;
	}

	public String optionName()
	{
		return this.configName;
	}

	public String optionValue()
	{
		return this.configValue;
	}

	@Override
	protected void appendParamaters(StringBuilder builder)
	{
		builder.append(',').append('\"').append(this.configName).append('\"');
		builder.append(',').append('\"').append(this.configValue).append('\"');
	}

}
